<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>PlotArea.setAltBgColor</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="PlotArea.htm">PlotArea</a>.<wbr>setAltBgColor</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setAltBgColor(boolean horizontal, int color1, int color2 [, int edgeColor ])
</div>
<p class="heading2">Description</p>
<div class="content">
Sets alternating plot area background color.<br><br>
This method can be used to specify two colors that will be used alternatively to draw horizontal or vertical bands on the plot area background, using major grid lines as boundaries for the bands.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>horizontal</td><td>(Mandatory)</td><td>true means to use horizontal bands. false means to use vertical bands.</td></tr><tr><td>color1</td><td>(Mandatory)</td><td>The first color to be used as the alternating background color.</td></tr><tr><td>color2</td><td>(Mandatory)</td><td>The second color to be used as the alternating background color.</td></tr><tr><td>edgeColor</td><td>-1</td><td>The border color of the plot area. -1 means to use the default, which is <a href="Chart.LineColor.htm">LineColor</a>. However, if the axes are configured in 4 quadrant mode (see <a href="XYChart.setAxisAtOrigin.htm">XYChart.setAxisAtOrigin</a>), the default will change to <a href="Chart.Transparent.htm">Transparent</a>.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
